package com.spring.self.tag.imports.dao.impl;

import com.spring.self.tag.imports.dao.UserDao;

import javax.sql.DataSource;

public class UserDaoImpl implements UserDao {
    private DataSource dataSource;
    
    // getter和setter
    public DataSource getDataSource() { return dataSource; }
    public void setDataSource(DataSource dataSource) { this.dataSource = dataSource; }
    
    @Override
    public void saveUser() {
        System.out.println("Saving user to database...");
    }
}